using OracleInternal.SqlAndPlsqlParser.LocalParsing;

namespace OracleInternal.SqlAndPlsqlParser.RuleProcessors.ODPCommands
{
	internal static class OracleMbEarleyWhereClauseRuleMultiProcessors
	{
		public static OracleMbEarleyRuleMultiProcessorAddItem[] s_vRuleProcessorItems;

		static OracleMbEarleyWhereClauseRuleMultiProcessors()
		{
			s_vRuleProcessorItems = new OracleMbEarleyRuleMultiProcessorAddItem[1]
			{
				new OracleMbEarleyRuleMultiProcessorAddItem
				{
					m_vHeadSymbol = "where_clause",
					m_vRHSSymbols = new string[2]
					{
						"'WHERE'",
						"condition"
					},
					m_vRuleProcessor = Process_WhereClause_WHERE_Condition_Rule,
					m_vAddType = OracleMbEarleyRuleMultiProcessorAddType.SpecificRule
				}
			};
		}

		public static object Process_WhereClause_WHERE_Condition_Rule(OracleMbEarleyParserMultiContext ctx, int ruleMatchPosition)
		{
			((OracleLpParserContext)ctx).CurrentStatementClause = OracleLpStatementClauseType.WhereClause;
			((OracleLpParserContext)ctx).HandleBindVariables = true;
			return null;
		}
	}
}
